<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="js/layui/css/layui.css" />
		<style>
			
		</style>
	</head>
	<body>
		<div class="layui-form">
			<div class="layui-form-item">
				<label class="layui-form-label text-r">行政区域：</label>
				<div class="layui-inline">
					<select id="select1" lay-search>
						<option value="">请选择省</option>
					</select>
				</div>
			</div>
		</div>
	</body>
	<script src="js/layui/layui.js"></script>
	<script>
		layui.extend({
			selectAjax:'./js/selectAjax'
		})
		layui.use(['form', 'selectAjax'],function(){
			layui.selectAjax.render({
				elem:"#select1"
				,url:'./js/demo3.json'
				,value:"130000"
				,parseData: function(r){ //将原始数据解析成 table 组件所规定的数据
				  return {
					"key": r.key1,
					"value": r.value
				  };
				}
			})
		})
	</script>
</html>
